package com.googlecode.chigscommons.web.common.table;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.DownloadLink;
import org.apache.wicket.markup.html.panel.Panel;

import java.io.File;

public class DownloadPanel extends Panel {

	public DownloadPanel(String id, String filename, File file ) {
		super(id);
		DownloadLink downloadLink = new DownloadLink("link", file, filename);
		add(downloadLink);
		downloadLink.add( new Label("label", filename));
	}

}
